<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>百度贴吧管理系统----修改用户</title>
<link rel="stylesheet" href="../css/styling.css" type="text/css"
	media="screen" />
<link href="../img/favicon.ico" rel="shortcut icon" type="image/x-icon" />
</head>
<body>

	<!-- BEGIN global wrapper -->
	<!-- BEGIN header -->
	<div id="monster">

		<div id="tagline">
			<a href="../jsp/index.jsp"><img style="margin-left: -30px;"
				src="../img/logo.gif" width="150" height="48" /></a>
		</div>
		<!-- END tagline -->

		<!-- BEGIN tabs -->
		<div id="navcontainer">
			<ul id="navlist">
				<li><a id="taba" href="../jsp/index.jsp">首页</a></li>
				<li><a id="tabb" class="active" href="../user/listUserAction">用户列表</a></li>
				<li><a id="tabc" href="../tieba/listTiebaAction">贴吧列表</a></li>
				<li><a id="tabd" href="../post/listPostAction">帖子列表</a></li>
			</ul>
		</div>
		<!-- END navcontainer -->

		<div id="tabbar"></div>
		<!-- END header -->

		<!-- BEGIN search -->
		<div id="search"></div>
		<!-- END search -->

		<!-- BEGIN container -->
		<div id="container">
			<!-- BEGIN left column -->
			<div id="left">
				<div id="lc">
					<div class="sidemenu">
						<ul>
							<li><a href="../jsp/index.jsp">首&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;页</a></li>
							<li><a href="../user/listUserAction">用户列表</a>
							<li><a href="../tieba/listTiebaAction">贴吧列表</a></li>
							<li><a href="../post/listPostAction">帖子列表</a></li>
							<li>&nbsp;</li>
							<li>&nbsp;</li>
							<li>&nbsp;</li>
							<li>&nbsp;</li>
							<li>&nbsp;</li>
							<li><a onclick="location.reload(true)">刷新页面</a></li>
							<li><a onclick="javascript:history.back(-1);">返回上一页</a></li>
						</ul>
					</div>
					<br class="clear" />
				</div>
				<!-- END lc -->
			</div>
			<!-- END left -->

			<!-- BEGIN center column -->
			<div id="center">
				<div id="cc">
					<%
						String userName = new String(request.getParameter("userName")
								.getBytes("UTF-8"), "UTF-8");
						String userPassword = new String(request.getParameter("userPassword")
								.getBytes("ISO-8859-1"), "UTF-8");
						String userSex = request.getParameter("userSex");
						String userBirthday = new String(request.getParameter("userBirthday")
								.getBytes("ISO-8859-1"), "UTF-8");
						%>
					<script type="text/javascript">
						window.onload=function(){
							var userSex="<%out.print(userSex);%>";
							if(userSex=="男")
								document.getElementById("checkRadioMan").checked="checked";
							else if(userSex=="女")
								document.getElementById("checkRadioWoman").checked="checked";
						};
					</script>
					<p style="text-align: center;font-weight: bold;font-size: 18px;">修改用户</p>
					<br />
					<div style="text-align: center;">
						<form method="post" action="../user/updateUserAction">
							<table style="text-align: left;margin: 0px auto;">
								<tr>
									<td>姓名：</td>
									<td><input type="text" readonly="readonly" name="userName"
										value="<%out.print(userName);%>" /></td>
								</tr>
								<tr>
									<td>密码：</td>
									<td><input type="text" name="userPassword"
										value="<%out.print(userPassword);%>" /></td>
								</tr>
								<tr>
									<td>确认密码：</td>
									<td><input type="text" name="userPasswordAgain"
										value="<%out.print(userPassword);%>" /></td>
								</tr>
								<tr>
									<td>性别：</td>
									<td>男&nbsp;<input id="checkRadioMan" type="radio"
										name="userSex" value="男">&nbsp;女&nbsp;<input
										type="radio" id="checkRadioWoman" name="userSex" value="女" /></td>
								</tr>
								<tr>
									<td>生日：</td>
									<td><input type="date" name="userBirthday"
										value="<%out.print(userBirthday);%>"></td>
								</tr>
							</table>
							<br/>
							<input type="submit" value="提交" />
						</form>
					</div>
				</div>
				<!-- END cc -->
			</div>
			<!-- END center -->

			<!-- BEGIN right column -->
			<div id="right">
				<div id="rc"></div>
				<!-- END rc -->
			</div>
			<!-- END right -->

			<br class="clear" />
			<!-- clear any float commands left -->
			<div class="clear">&nbsp;</div>

		</div>
		<!-- END container -->

		<!-- BEGIN footer -->
		<div id="footer">

			<!-- BEGIN bottomline links -->
			<div id="footmenu"></div>
			<!-- END footmenu -->

			<div class="author">Copyright &copy;2014 长沙理工大学 计算机与通信工程学院
				计算机科学与技术1204班 201250080419刘星鹭</div>

		</div>
		<!-- END footer -->

		<div class="clear">&nbsp;</div>
	</div>
	<!-- END monster -->

</body>

</html>

